package org.example.controller;

//import client.ProviderClient;
import org.example.client.ProviderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: WangBlue
 * @create: 2024-04-10 09:37
 **/

@RestController
public class CustomerController {
    @Autowired
    private ProviderClient providerClient;

    @GetMapping("/hiFeign")
    public String hiFeign(){
        return providerClient.hi("provider");
    }


    @GetMapping("customerTest")
    public String customerTest(){
        return providerClient.test("wangblue123");
    }

}
